/**
 * Tractus-X -  Digital Product Pass Application
 *
 * Copyright (c) 2022, 2024 BMW AG
 * Copyright (c) 2022, 2024 Henkel AG & Co. KGaA
 * Copyright (c) 2023, 2024 CGI Deutschland B.V. & Co. KG
 * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Apache License, Version 2.0 which is available at
 * https://www.apache.org/licenses/LICENSE-2.0.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the
 * License for the specific language govern in permissions and limitations
 * under the License.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

.battery-graph {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  padding: 7px;
  display: flex;
  background-color: #f5f5f5;
  border-radius: 8px;
  margin: 6px 0 12px 12px;
  @include background-image(
    $background-image-url,
    $background-color,
    $background-size,
    $background-position,
    $background-repeat
  );

  .graph-icon {
    width: 100%;
  }
  .composition-graph {
    width: 100%;
    display: flex;

    .composition-section {
      position: relative;
      width: 50%;
      display: flex;
      flex-direction: column;
      margin-bottom: 10px;
    }

    .composition-bar-container {
      display: flex;
      flex-direction: column;
      margin-top: 10px;
      width: 30px;

      .component-label-container {
        position: absolute;
        font-weight: 600;
        background: #f5f5f5;
        padding: 0 5px;
        white-space: nowrap;
      }
      .component-label-line {
        position: absolute;
        padding: 0 20px;
        height: 1px;
        background-color: black;
        width: 70%;
      }
    }
    .composition-title {
      font-size: 11px;
      font-weight: 500;
    }
    .composition-bar {
      display: flex;
      align-items: center;
      width: 100%;
      font-size: 14px;
      height: 100%;
    }
  }
  .type {
    font-size: 12px;
    font-weight: 600;
  }
}

@media (max-width: 960px) {
  .battery-graph {
    width: 60%;
    margin: 0 20% 30px 20%;
  }
}
